package com.kinghood.productcenter.dao.base;

import com.kinghood.infrastructure.model.dto.IdValueDTO;
import com.kinghood.productcenter.common.model.dao.base.BaseAttributeValueDO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kinghood.productcenter.common.model.dto.base.AttributeValueReqDTO;
import com.kinghood.productcenter.common.model.dto.base.ValueListByAttributeIdDTO;
import feign.Param;

import java.util.List;

/**
 * <p>
 * 属性可选值 Mapper 接口
 * </p>
 *
 * @author KingHood
 * @since 2023-12-20
 */
public interface BaseAttributeValueMapper extends BaseMapper<BaseAttributeValueDO> {

    /**
     * 根据id列表获取值
     *
     * @param attributeValueIdList 属性值id列表
     * @return @return {@link List }<{@link BaseAttributeValueDO }>
     * @author jp
     * @date 2024/01/12 15:01
     */
    List<BaseAttributeValueDO> getValuesByList(@Param("list") List<Long> attributeValueIdList);

    /**
     * 按属性id列表获取值
     *
     * @param attributeIdList 属性id列表
     * @return @return {@link List }<{@link ValueListByAttributeIdDTO }>
     * @author jp
     * @date 2024/01/31 17:13
     */
    List<ValueListByAttributeIdDTO> getValuesByAttributeIdList(List<Long> attributeIdList);
}
